package com.scorpio.scbasics.into.service.impl;

import com.scorpio.scbasics.into.mapper.InitMapper;
import com.scorpio.scbasics.into.service.InitService;
import com.scorpio.scbasics.rediostation.dto.BizJpushDTO;
import com.scorpio.scbasics.rediostation.dto.BizUserChannelDTO;
import com.scorpio.scbasics.rediostation.dto.BizUserDeviceDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author scorpio
 * @date 2020-10-19
 */
@Service
public class InitServiceImpl implements InitService {

    @Autowired
    private InitMapper initMapper;

    @Override
    public int AddUserDevice(BizUserDeviceDTO bud) {
        return initMapper.AddUserDevice(bud);
    }

    @Override
    public int AddChannelCode(int user_id, String channel_code, String create_time) {
        return initMapper.AddChannelCode(user_id, channel_code, create_time);
    }

    @Override
    public int ModifyChannelCode(int user_id, String channel_code) {
        return initMapper.ModifyChannelCode(user_id, channel_code);
    }

    @Override
    public int ExistChannelCode(int user_id) {
        return initMapper.ExistChannelCode(user_id);
    }

    @Override
    public BizUserChannelDTO GetChannelCodeByID(int user_id) {
        return initMapper.GetChannelCodeByID(user_id);
    }

    @Override
    public int AddJPush(int user_id, String registration_id, String ios_release_push) {
        return initMapper.AddJPush(user_id, registration_id, ios_release_push);
    }

    @Override
    public int ModifyJPush(int user_id, String registration_id, String ios_release_push) {
        return initMapper.ModifyJPush(user_id, registration_id, ios_release_push);
    }

    @Override
    public int RemoveJPush(int user_id) {
        return initMapper.RemoveJPush(user_id);
    }

    @Override
    public BizJpushDTO GetRegistrationID(int user_id) {
        return  initMapper.GetRegistrationID(user_id);
    }
}
